import request from './request'

export const gettasklists = (params) => {
  return request({
    url: '/api/admin/taskExams ',
    method: 'GET',
    params
  })
}

export const gettasklist = () => {
  return request({
    url: '/api/admin/taskExamList',
    method: 'GET'
  })
}

// 删除用户
export const deletetask = (tid) => {
  return request({
    url: `/api/admin/taskExam/${tid}`,
    method: 'DELETE'
  })
}

// id查询
export const gettaskfromid = (tid) => {
  return request({
    url: `/api/admin/taskExam/${tid}`,
    method: 'GET'
  })
}

// id查询
export const addtask = (data) => {
  return request({
    url: '/api/admin/taskExam',
    method: 'POST',
    data
  })
}
<<<<<<< HEAD

// id查询
export const taskcenterlist = () => {
  return request({
    url: '/api/student/task',
    method: 'GET'
  })
}
=======
>>>>>>> 7d520118954f103433f5074ad63a16f5b63acf51
